home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xaw / MultiSinkP.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  5KB  |  142 lines

  1. /* $Xorg: MultiSinkP.h,v 1.4 2001/02/09 02:03:44 xorgcvs Exp $ */
  2.  
  3. /*
  4.  * Copyright 1991 by OMRON Corporation
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name OMRON not be used in
  11.  * advertising or publicity pertaining to distribution of the software without
  12.  * specific, written prior permission.  OMRON make no representations
  13.  * about the suitability of this software for any purpose.  It is provided
  14.  * "as is" without express or implied warranty.
  15.  *
  16.  * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  17.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  18.  * EVENT SHALL OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  19.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  20.  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  21.  * TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  22.  * PERFORMANCE OF THIS SOFTWARE.
  23.  *
  24.  *      Author: Li Yuhong     OMRON Corporation
  25.  */
  26.  
  27.  
  28. /***********************************************************
  29.  
  30. Copyright 1987, 1988, 1994, 1998  The Open Group
  31.  
  32. Permission to use, copy, modify, distribute, and sell this software and its
  33. documentation for any purpose is hereby granted without fee, provided that
  34. the above copyright notice appear in all copies and that both that
  35. copyright notice and this permission notice appear in supporting
  36. documentation.
  37.  
  38. The above copyright notice and this permission notice shall be included in
  39. all copies or substantial portions of the Software.
  40.  
  41. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  42. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  43. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  44. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  45. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  46. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  47.  
  48. Except as contained in this notice, the name of The Open Group shall not be
  49. used in advertising or otherwise to promote the sale, use or other dealings
  50. in this Software without prior written authorization from The Open Group.
  51.  
  52.  
  53. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
  54.  
  55.                         All Rights Reserved
  56.  
  57. Permission to use, copy, modify, and distribute this software and its 
  58. documentation for any purpose and without fee is hereby granted, 
  59. provided that the above copyright notice appear in all copies and that
  60. both that copyright notice and this permission notice appear in 
  61. supporting documentation, and that the name of Digital not be
  62. used in advertising or publicity pertaining to distribution of the
  63. software without specific, written prior permission.  
  64.  
  65. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  66. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  67. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  68. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  69. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  70. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  71. SOFTWARE.
  72.  
  73. ******************************************************************/
  74. /* $XFree86: xc/lib/Xaw/MultiSinkP.h,v 1.8 2001/01/17 19:42:28 dawes Exp $ */
  75.  
  76. #ifndef _XawMultiSinkP_h
  77. #define _XawMultiSinkP_h
  78.  
  79. #include <X11/Xfuncproto.h>
  80.  
  81. /*
  82.  * MultiSink Object Private Data
  83.  */
  84. #include <X11/Xaw/TextSinkP.h> 
  85. #include <X11/Xaw/MultiSink.h> 
  86.  
  87. /* new fields for the MultiSink object class */
  88. typedef struct _MultiSinkClassPart {
  89.     XtPointer extension;
  90. } MultiSinkClassPart;
  91.  
  92. /* Full class record declaration */
  93. typedef struct _MultiSinkClassRec {
  94.     ObjectClassPart     object_class;
  95.     TextSinkClassPart    text_sink_class;
  96.     MultiSinkClassPart    multi_sink_class;
  97. } MultiSinkClassRec;
  98.  
  99. extern MultiSinkClassRec multiSinkClassRec;
  100.  
  101. /* New fields for the MultiSink object record */
  102. typedef struct {
  103.     /* resources */
  104.     Boolean echo;
  105.     Boolean display_nonprinting;
  106.  
  107.     /* private */
  108.     GC normgc, invgc, xorgc;
  109.     XawTextPosition cursor_position;
  110.     XawTextInsertState laststate;
  111.     short cursor_x, cursor_y;        /* Cursor Location */
  112.     XFontSet fontset;            /* font set to draw */
  113. #ifndef OLDXAW
  114.     XtPointer pad[4];    /* for future use and keep binary compatability */
  115. #endif
  116. } MultiSinkPart;
  117.  
  118. /* Full instance record declaration */
  119. typedef struct _MultiSinkRec {
  120.     ObjectPart          object;
  121.     TextSinkPart    text_sink;
  122.     MultiSinkPart    multi_sink;
  123. } MultiSinkRec;
  124.  
  125. /*
  126.  * Semi-private functions
  127.  * for use by other Xaw modules only
  128.  */
  129. _XFUNCPROTOBEGIN
  130.  
  131. void _XawMultiSinkPosToXY
  132. (
  133.  Widget            w,
  134.  XawTextPosition    pos,
  135.  Position        *x,
  136.  Position        *y
  137. );
  138.  
  139. _XFUNCPROTOEND
  140.  
  141. #endif /* _XawMultiSinkP_h */
  142.